package com.blockchain.nodes.manager.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.blockchain.nodes.common.base.BaseEntity;
import java.util.Date;

/**
 * 节点配置表 t_nodes_config
 * 
 * @author Gene Max
 * @date 2019-03-08
 */
public class NodesConfig extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 节点编码 */
	private String nodeCode;
	/** 节点名称 */
	private String nodeNames;
	/** JSON数据存储 */
	private String nodeValue;
	/** 1 使用 0 停用 */
	private Integer isUse;
	/** 创建时间 */
	private Date creteDate;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setNodeCode(String nodeCode) 
	{
		this.nodeCode = nodeCode;
	}

	public String getNodeCode() 
	{
		return nodeCode;
	}
	public void setNodeNames(String nodeNames) 
	{
		this.nodeNames = nodeNames;
	}

	public String getNodeNames() 
	{
		return nodeNames;
	}
	public void setNodeValue(String nodeValue) 
	{
		this.nodeValue = nodeValue;
	}

	public String getNodeValue() 
	{
		return nodeValue;
	}
	public void setIsUse(Integer isUse) 
	{
		this.isUse = isUse;
	}

	public Integer getIsUse() 
	{
		return isUse;
	}
	public void setCreteDate(Date creteDate) 
	{
		this.creteDate = creteDate;
	}

	public Date getCreteDate() 
	{
		return creteDate;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nodeCode", getNodeCode())
            .append("nodeNames", getNodeNames())
            .append("nodeValue", getNodeValue())
            .append("isUse", getIsUse())
            .append("creteDate", getCreteDate())
            .toString();
    }
}
